
//Can constructor be declared as private?
//Can destructor be declared as private?

#include <iostream>
#include <cstdio>
using namespace std;

class A{
  A(){cout<<"A()"<<endl;}
  ~A(){cout<<"~A()"<<endl;}
};

class B:public A{
  int i;
};

int main()
{
//   A a;
//error A() is private;
//error~A() is private;
//  B b;
}
